#include <iostream>
using std::cin;
using std::cout;
using std::endl;
class Clock{
    public:
    void setTime(int newS,int newM,int newH){
        second=newS;
        minute=newM;
        hour=newH;
    }
    void showTime();
    private:
    int second,minute,hour;
};
void Clock::showTime(){
    cout<<hour<<":"<<minute<<":"<<second<<endl;
}
int main(){
    Clock MyClock;
    int second,minute,hour;
    cin>>second>>minute>>hour;
    MyClock.setTime(second,minute,hour);
    MyClock.showTime();
    return 0;
}